package com.hzw.subject.common.enums;

import lombok.Getter;

@Getter
public enum IsDeletedFlagEnum {
    DELEETED(1,"已删除"),
    UN_DELEETED(0,"未删除"),
    ;
    private int code;
    public String desc;
    IsDeletedFlagEnum(int code, String desc) {
        this.code=code;
        this.desc=desc;
    }
    public static IsDeletedFlagEnum getByCode(int codeVal){
        for(IsDeletedFlagEnum isdeletedflagenum: IsDeletedFlagEnum.values()){
            if(isdeletedflagenum.code==codeVal){
                return isdeletedflagenum;
            }
        }
        return null;
    }
}
